home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / fprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  804 b   |  48 lines

  1. /* from Dale Schumacher's dLibs */
  2.  
  3. #define __SRC__    /* keep compiler happy about protos */
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6. #include <ansi.h>
  7.  
  8. extern int _doprnt();
  9.  
  10. int fprintf(fp, fmt, arg)
  11. FILE *fp;
  12. _CONST char *fmt;
  13. int arg;
  14. {
  15.     return(_doprnt(fp, fmt, &arg));
  16. }
  17.  
  18. int vfprintf(fp, fmt, args)
  19. FILE *fp;
  20. _CONST char *fmt;
  21. va_list args;
  22. {
  23.     return(_doprnt(fp, fmt, args));
  24. }
  25.  
  26. int printf(fmt, arg)
  27. _CONST char *fmt;
  28. int arg;
  29. {
  30.     return(_doprnt(stdout, fmt, &arg));
  31. }
  32.  
  33. int vprintf(fmt, args)
  34. _CONST char *fmt;
  35. va_list args;
  36. {
  37.     return(_doprnt(stdout, fmt, args));
  38. }
  39.  
  40. /* This is used by the `assert' macro.  */
  41. void __eprintf (string, line, filename)
  42. char *string;
  43. long line;
  44. char *filename; /* note if STDC then filename is already in string */
  45. {
  46.     (void)_doprnt(stderr, string, &line);
  47. }
  48.